<gm:page title="Word List" authenticate="true">

  <table width="100%">
    <tr>
      <td width="50%">
        <gm:list id="Words" data="${app}/Words" template="WordsTmpl"/>
      </td>
     <td width="50%">
       <gm:list id="Meanings" data="${Words}/Meanings" template="MeaningsTmpl">
         <gm:handleEvent src="Words"/>
       </gm:list>
     </td>
    </tr>
  </table>

  <gm:template id="WordsTmpl">

    <table width="100%">
      <tr repeat="true">
        <td width="100%"><gm:text id="word" ref="atom:title"/></td>
        <td><gm:editButtons/></td>
      </tr>
    </table>

    <gm:create label="ഒരു വാക്കു് കൂടി"/>

  </gm:template>


  <gm:template id="MeaningsTmpl">
    <table width="100%">
      <tr repeat="true">
        <td width="100%"><gm:text id="meaning" ref="atom:title"/></td>
        <td><gm:editButtons/></td>
      </tr>
    </table>

    <gm:create label="ഒരര്‍ത്ഥം കൂടി"/>

  </gm:template>

</gm:page>

